package zero.tech.games.api;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import zero.tech.games.common.topic.ProxyAdd;
import zero.tech.games.common.topic.ProxyRebind;

@FeignClient(name = "extension",path = "/extension")
public interface RemoteExtension {
	@PostMapping("/all-childs")
	public List<Integer> allChilds(@RequestParam("club_id")int club_id,@RequestParam("uid")int uid);
	@PostMapping("/zs-count-map")
	public Map<Integer, Integer> zsCountMap(@RequestParam("club_id") int club_id,@RequestParam("uids_str") String str);
	@PostMapping("/fzs-count-map")
	public Map<Integer, Integer> fzsCountMap(@RequestParam("club_id") int club_id,@RequestParam("uids_str") String str);
	@PostMapping("/proxy-add")
	public void proxyAdd(@RequestBody ProxyAdd proxyAdd);
	@PostMapping("/proxy-rebind")
	public void proxyRebind(@RequestBody ProxyRebind proxyRebind);
}
